[#ftl]
[#assign entityName="Goods"]
[#assign pathRoot="/admin/ec/goods/goods_"]
[@jsec.authPage perms=["${entityName}_ctrl"]/]
[@frame.root]
  <!-- Default panel contents -->
  [@frame.title]
  	编辑文章
  [/@]
[@frame.body]
  	[#global ent=(jdao.hql("from ${entityName} where id=?",[jweb.pathName("id")])()[0])!{}]
    [@form.form  type="upload" id="ent" action="${base}${pathRoot}save.shtml" back="${base}${pathRoot}list.shtml" topbtn=true]
		[@form.text id="title" label="名称" length=6 required=true/]
		[@form.image id="img" label="标题图"/]
		[@form.enums id="goodsType" enumName="com.ustudy.entity.ec.Goods$GoodsType" label="类型" length=3 required=true /]
		[@form.digit id="showPrice" label="原价" length=3 required=true /]
		[@form.digit id="price" label="优惠价" length=3 required=true /]
		[@form.digit id="storeNum" label="库存数量" length=3 required=true /]
		[@form.select id="status" datas=[{"id":"true","name":"上架"},{"id":"false","name":"下架"}] value="id" title="name" label="状态" length=3 required=true /]
		[@form.field id="id" label="状态设置" length=3 ;item]
		
		[/@]
		[@form.editor id="body" label="正文" length=8 richtext=true/]
	[/@]
[/@]

[/@]
